package com.wzdigit.wms.basic.client.request.basic;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 导入承运人信息输入
 * @author yangdongjie
 * @WarehouseAttrResponse.java
 * @2020年12月31日下午5:18:20
 */
@Data
public class ImportCarrierRequest implements Serializable {

	private static final long serialVersionUID = 680012151909452166L;

	/**
	 * 行号
	 */
	private Integer row;
	
	/**
	 * 承运人编码
	 */
    @NotBlank(message = "承运人编码不能为空")
    @Pattern(regexp = "[a-z0-9A-Z_]+", message = "承运人编码有误")
    private String carrierCode;

	/**
	 * 承运人名称
	 */
    @NotBlank(message = "承运人名称不能为空")
    private String carrierName;

	/**
	 * 承运人地址
	 */
    private String carrierAddress;

	/**
	 * 承运人联系人
	 */
    private String carrierContact;

	/**
	 * 承运人电话
	 */
    @Pattern(regexp = "1[3,4,5,8]{1}\\d{9}", message = "手机号码格式有误")
    private String carrierTel;

	/**
	 * 承运人邮箱
	 */
    @Pattern(regexp = "\\w+@(\\w+\\.){1,3}\\w+", message = "邮箱格式有误")
    private String carrierEmail;

	/**
	 * 承运人传真
	 */
    @Pattern(regexp = "[+]{0,1}(\\d){1,3}[ ]?([-]?((\\d)|[ ]){1,12})+", message = "传真格式有误")
    private String carrierFax;
}